﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PluginCommon;

namespace SvnSchedule
{
    public partial class FormPlugin : PluginFormBase
    {
        public FormPlugin()
        {
            InitializeComponent();
        }

        private void DirectoryTextBox_TextChanged(object sender, EventArgs e)
        {


        }

        private void SaveButton_Click(object sender, EventArgs e)
        {
            byte[] data = Encoding.Unicode.GetBytes(DirectoryTextBox.Text.Trim());
            File.WriteAllBytes(Application.StartupPath + "\\svn.data", data);
        }

        private void FormPlugin_Load(object sender, EventArgs e)
        {
            if (File.Exists(Application.StartupPath + "\\svn.data"))
            {
                byte[] data = File.ReadAllBytes(Application.StartupPath + "\\svn.data");
                DirectoryTextBox.Text = Encoding.Unicode.GetString(data);
            }
        }
    }
}
